function NewWind(theurl,thewidth,theheight,IsScrolling)
{
	var browser = navigator.appName;
	var isNetscape = browser.indexOf("Microsoft") == -1 ? true: false;
	var popup;
	var thetop = 0;
	var theleft = 0;
	var screenH = 640;
	var screenW = 480;
	
	//get the resolution settings
	screenH = screen.availHeight;
	screenW = screen.availWidth;
			
	//get the left spacing based on resolution
	theleft = Math.ceil((screenW - thewidth)/2);
	thetop = Math.ceil((screenH - theheight)/2);
			
	if (isNetscape)
		popup = window.open(theurl, "Popup","top="+thetop+",left="+theleft+",width="+thewidth+",height="+theheight+",toolbar=0,menubar=0,resizable=0,status=0,location=0,directories=0,scrollbars="+IsScrolling);
	else
		popup = window.open(theurl, "Popup","top="+thetop+",left="+theleft+",width="+thewidth+",height="+theheight+",toolbar=0,menubar=0,status=0,location=0,directories=0,scrollbars="+IsScrolling);
}
//add by leo 2010-06-28
function CateMenuClick(id)
{
    
    if($("#SubTb"+id).css("display") == "none")
    {
        //by martin 2010 - 07 - 02
         $(".menu_list table").hide()
         $("#SubTb"+id).parents(".menu_list").show();
         $("#SubTb"+id).parents().show()
         
         $("#SubTb"+id).show();
     }
    else
        $("#SubTb"+id).hide();
        
        
}